package com.ytclub.subject.application.convert;

import com.ytclub.subject.application.dto.SubjectInfoDTO;
import com.ytclub.subject.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 分类DTO的转换
 *
 * @author: HuangQi
 * @date: Created in 21:23 2023/12/14
 * @description: 分类DTO的转换
 */
@Mapper
public interface SubjectInfoDTOConvert {
    SubjectInfoDTOConvert INSTANCE = Mappers.getMapper(SubjectInfoDTOConvert.class);

    SubjectInfoBO convertDTOToInfoBO(SubjectInfoDTO subjectInfoDTO);

    SubjectInfoDTO convertBOToDTO(SubjectInfoBO subjectInfoBO);

    List<SubjectInfoDTO> convertListBOToDTO(List<SubjectInfoBO> subjectInfoBOList);

}
